#include "stm32f10x.h"                  // Device header
#include "Delay.h"
#include "OLED.h"
#include "PWM.h"
#include "IC.h"


int main(void)
{
	OLED_Init();
	OLED_ShowString(1, 1, "Fre:00000Hz");
	OLED_ShowString(2, 1, "Duty:000%");
	PWM_Init();
	IC_Init();
	while (1)
	{
		OLED_ShowNum(1, 5, IC_FreGet(), 5);
		OLED_ShowNum(2, 6, IC_DutyGet(), 3);
	}
}
